package com.kuang.service;

import com.kuang.dao.UserMapper;
import com.kuang.pojo.Readers;
import com.kuang.pojo.Users;

import java.util.List;

public class UserServiceimpl implements UserService{
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public Boolean queryNP(String Name,String Pass) {
        return userMapper.queryNP(Name,Pass);
    }

    public Boolean updatepass(String userName, String old, String now) {
        return userMapper.updatepass(userName,old,now);
    }

    public Boolean insertpass(String Name, String Pass) {
        return userMapper.insert(Name,Pass);
    }

    public List<Users> alluser() {
        return userMapper.alluser();
    }

    public int deleteById(int id) {
        return userMapper.deleteuser(id);
    }


}
